package addon.w3.mdx.com;

import java.io.IOException;

import addon.w3.mdx.MDXCOM;
import addon.w3.mdx.LEDataInputStream;
import addon.w3.mdx.MDXException;

/**
 * VERS						// [Version]
	long	nbytes;
	long	Version; 			// Currently 0x20030000 (800)
 * @author madjk
 *
 */
public class MDXVersionCOM extends MDXCOM {
	int length = -1;
	int version = -1;
	
	public String getTag() {
		return "VERS";
	}
	
	public void _decode(LEDataInputStream ins) throws IOException, MDXException {
		length = ins.readInt();
		version = ins.readInt();
	}
	
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("TAG : "+getTag());
		sb.append("\n\tILEN : "+length);
		sb.append("\n\tVERSION : "+version);
		return sb.toString();
	}

	@Override
	public boolean isImplicitTag() {
		// TODO Auto-generated method stub
		return true;
	}
}
